const { spawn } = require('child_process');
const ls = spawn('ls' ,['-lh', '/var']);

ls.stdout.on('data', (data)=>{
	console.log(`stdout:${data}`);
});

ls.stderr.on('data', (data)=>{
	console.log(`stderr:${data}`);
});

ls.on('close', (code)=>{
	console.log(`exit code: ${code}`);
});

